# Contributor: Christoph Zeiler <rabyte*gmail>

pkgname=deutex-devel
pkgver=4.4.902
pkgrel=5
pkgdesc="A WAD file composer for Doom, Heretic, Hexen and Strife"
arch=('i686' 'x86_64')
url="http://www.teaser.fr/~amajorel/deutex/"
license=('custom')
provides=('deutex')
conflicts=('deutex')
source=(http://www.teaser.fr/~amajorel/deutex/fungus/deutex-$pkgver.tar.gz)
md5sums=('5f2d6184b69e2e05f4e7c5bcd6a74cb9')

build() {
  cd deutex-$pkgver

  ./configure --cflags="${CFLAGS}"

  make || return 1
  mkdir -p $pkgdir/usr/{bin,share/man/man6}
  make BINDIR=$pkgdir/usr/bin MANDIR=$pkgdir/usr/share/man install

  install -Dm644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
